package com.chris.design.pattern.samples.singleton;

/**
 * 单例模式， 已经做到优化案例
 */
public class SingletonAppMain {

    public static void main(String[] args) {
        EnumSingleton.uniqueInstance.singletonOperation(EnumSingleton.uniqueInstance.name());

        LazyInitInnerStaticClazzSingleton instance = LazyInitInnerStaticClazzSingleton.getInstance();
        instance.doSomething("kotori");

    }
}
